GDK W32: Change WM_SYSMENU style switch logic
authorРуслан Ижбулатов <lrn1986@gmail.com>
Sun, 25 Dec 2016 17:48:20 +0000 (17:48 +0000)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Sat, 2 Dec 2017 10:38:19 +0000 (10:38 +0000)
commite1240b42edb89da49a89b58f05bfd443ef5e1505
tree1aa77ed72f86e44bdb320f92500cf10b7bf08101
parent9e5fc16307e9d22e8e18133f8895289b5a002ba1
GDK W32: Change WM_SYSMENU style switch logic

Instead of checking for window state and giving it extra styles that
fit, just give it all styles that it is missing. It turned out that
otherwise it is impossible to, for example, restore a maximized window
via sysmenu. Also, be more flexible towards GDK/WM window state mismatches
and consider the window minimized/maximized if *either* GDK or WM thinks so.

https://bugzilla.gnome.org/show_bug.cgi?id=776485
gdk/win32/gdkevents-win32.c